package com.hdd.biz.operate.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hdd.biz.operate.entity.Dict;
import com.hdd.biz.operate.mapper.DictMapper;
import com.hdd.biz.operate.service.DictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fang
 * @since 2021-03-26
 */
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements DictService {

    @Override
    public Dict findDictByName(String name) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("name",name);
        return baseMapper.selectOne(wrapper);
    }

}
